package chapter06;

import java.util.ArrayList;

public class Test02_arraylist1 {
    public static void main(String[] args) {
        ArrayList<String> strings = new ArrayList<>();
        strings.add("张三");
        System.out.println(strings.get(0) instanceof String);
        ArrayList<Person> people = new ArrayList<>();
        people.add(new Person("张三",20));
        people.get(0).info();

    }
}
